package com.bdsy.system.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bdsy.system.dao.UserOperationLogMapper;
import com.bdsy.system.model.UserOperationLog;
import com.bdsy.system.service.UserLogService;
import com.bdsy.system.service.UserOperationLogService;

/**
 * ClassName:UserServiceImpl
 * Description: TODO 添加描述.
 * @author   Administrator
 * @version  
 * @since    JDK 1.8
 */

@Service("userOperationLogService")
public class UserOperationLogServiceImpl implements UserOperationLogService{

    @Autowired
    UserOperationLogMapper logMapper;
    
	public void save(UserOperationLog userOperationLog){
		logMapper.insertUserOperLog(userOperationLog);
	}

	@Override
	public List<Map> getUserOperaByQuery(String username, String fromDate,
			String toDate) {
		List<Map> list = logMapper.selectUserOperaListByQuery(username, fromDate, toDate);
		return list;
		
	}
	
}

